package com.wjp.banquet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wjp.banquet.common.bean.BaseEmptyEntity;
import com.wjp.banquet.common.enums.DelFlagEnum;
import lombok.Data;

import java.util.Date;

/**
 * @Author 王君平
 * @Date 2024/4/26 12:15
 * @Description
 */
@Data
@TableName("t_user")
public class User extends BaseEmptyEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private Boolean delFlag;

    private Date crtTime;


    @Override
    public void fillUpToSave() {
        this.setCrtTime(new Date());
        this.setDelFlag(DelFlagEnum.USE.isCode());
    }

    @Override
    public void fillUpToUpdate() {

    }
}
